PreviousNextTracker indexSee it online !

(114/314) 2888670 - Indenting of XML (applies to both XML indenter & XML plugin

When indenting an XML like string like this

<?xml version="1.0"?><a> <b/> </a><?xml version="1.0"?><a> <b/> </a>

(that is, string with two XML messages in the same file) the result looks like this:

<?xml version="1.0"?>
<a>
<b/>
</a><?xml version="1.0"?>
<a>
<b/>
</a>

I think it should look more like this

<?xml version="1.0"?>
<a>
<b/>
</a>
<?xml version="1.0"?>
<a>
<b/>
</a>

or even maybe like this:

<?xml version="1.0"?>
<a>
<b/>
</a>

<?xml version="1.0"?>
<a>
<b/>
</a>

(note the empty line before the XML-declaration, could even use a long comment such as <!------------------------------------> for separating the two XMLs)

Submitted david-bo - 2009-10-29 - 09:29:43z Assigned nobody
Priority 5 Category None
Status Open Group None
Resolution None Visibility No

Comments

Attachments